import plotly.graph_objects as go
import pandas as pd
data = pd.read_csv('./data/3d-line1.csv')
data.head()
line = go.Scatter(x = data['x'], y = data['y'])
fig = go.Figure(line)
fig.show()

line = go.Scatter3d(x = data['x'], y = data['y'], z = data['z'])
fig = go.Figure(line)
fig.show()

line = go.Scatter3d(x = data['x'], y = data['y'], z = data['z'], mode='markers')
fig = go.Figure(line)
fig.show()

line = go.Scatter3d(x = data['x'], y = data['y'], z = data['z'],
                    mode='markers', marker={'size': 3, 'color': 'red'})
fig = go.Figure(line)
fig.show()
# plotly.express
import plotly.express as px
data.head()
fig = px.scatter_3d(data, x='x', y='y', z='z', color='color')
fig.show()